<%@ page language="java" contentType="text/html; charset=UTF-8"
	import="org.windblog.core.*" pageEncoding="UTF-8"%>

<jsp:include page="header.jsp"></jsp:include>
<jsp:include page="sidebar.jsp"></jsp:include>
<script type="text/javascript">
			$(function(){
				// Accordion
				$("#appearanceButton").button( "option", "icons", {primary:'ui-icon-carat-1-e'} );
			});
		</script>
<div id="content">
<h2>Manage Themes</h2>
<hr />
<h3>Current Theme</h3>
<div id="current-theme" style="float:left"><img
	src="<%=GeneralTemplate.getThemePath() %>/screenshot.png"
	alt="Current theme preview" style="float:left;margin-right:2em"/>
<h4>WordPress Classic 1.5 by Dave Shea</h4>
<p class="description">The original WordPress theme that graced
versions 1.2.x and prior.</p>
<p>All of this theme&#8217;s files are located in <code>/themes/classic</code>.</p>
<p>Tags: mantle color, variable width, two columns, widgets</p>

</div>
<div style="clear:both"></div>
<hr/>
<h3>Available Themes</h3>
<table id="availablethemes" cellspacing="0" cellpadding="0">
<tr>
	<td>
		<a href="themes.jsp?action=activate&template=classic">
			<img src="<%=GeneralTemplate.getThemeRoot() %>classic/screenshot.png" alt="" />
		</a>
		<h3><a class="thickbox" href="themes.jsp?action=activate&template=classic">WordPress Classic</a></h3>
		<p>The original WordPress theme that graced versions 1.2.x and prior.</p>
		<p>Tags: mantle color, variable width, two columns, widgets</p>
				<noscript><p class="themeactions"><a href="http://127.0.0.1/wordpress/?preview=1&amp;template=classic&amp;stylesheet=classic&amp;TB_iframe=true&amp;width=600&amp;height=400" title="Preview of &quot;WordPress Classic&quot;">Preview</a> <a href="themes.php?action=activate&amp;template=classic&amp;stylesheet=classic&amp;_wpnonce=a0e9b48cb3" title="Activate &quot;WordPress Classic&quot;">Activate</a></p></noscript>
		<div style="display:none;"><a class="previewlink" href="http://127.0.0.1/wordpress/?preview=1&amp;template=classic&amp;stylesheet=classic&amp;TB_iframe=true&amp;width=600&amp;height=400">Preview of &quot;WordPress Classic&quot;</a> <a class="activatelink" href="themes.php?action=activate&amp;template=classic&amp;stylesheet=classic&amp;_wpnonce=a0e9b48cb3">Activate &quot;WordPress Classic&quot;</a></div>
	</td>
	<td>
		<a href="themes.jsp?action=activate&template=default">
			<img src="<%=GeneralTemplate.getThemeRoot() %>default/screenshot.png" alt="" />
		</a>
		<h3><a class="thickbox" href="themes.jsp?action=activate&template=default">WordPress Default</a></h3>
		<p>The default WordPress theme based on the famous <a href="http://binarybonsai.com/kubrick/">Kubrick</a>.</p>
		<p>Tags: blue, custom header, fixed width, two columns, widgets</p>
				<noscript><p class="themeactions"><a href="http://127.0.0.1/wordpress/?preview=1&amp;template=default&amp;stylesheet=default&amp;TB_iframe=true&amp;width=600&amp;height=400" title="Preview of &quot;WordPress Default&quot;">Preview</a> <a href="themes.php?action=activate&amp;template=default&amp;stylesheet=default&amp;_wpnonce=75f3ba67e8" title="Activate &quot;WordPress Default&quot;">Activate</a></p></noscript>
		<div style="display:none;"><a class="previewlink" href="http://127.0.0.1/wordpress/?preview=1&amp;template=default&amp;stylesheet=default&amp;TB_iframe=true&amp;width=600&amp;height=400">Preview of &quot;WordPress Default&quot;</a> <a class="activatelink" href="themes.php?action=activate&amp;template=default&amp;stylesheet=default&amp;_wpnonce=75f3ba67e8">Activate &quot;WordPress Default&quot;</a></div>
	</td>
</tr>
</table>

</div>
<%
	String action = request.getParameter("action");
	String template = request.getParameter("template");
	if(action!=null)
	{
		OptionService.setOption("template",template);
		response.sendRedirect("themes.jsp");
	}
%>
<jsp:include page="footer.jsp"></jsp:include>
